﻿

namespace MyFile.Config
{
    /// <summary>
    /// Siemens配置类
    /// </summary>
    public class SiemensConfig
    {
        public SiemensConfig() { }

        /// <summary>
        /// IP地址
        /// </summary>
        public string IP { get; set; }

        /// <summary>
        /// DB对象
        /// </summary>
        public List<DBData> S7DB { get; set; }

        /// <summary>
        /// 连接状态
        /// </summary>
        public ENUM_CONNECT_STATUS ConnectStatus { get; set; }

        /// <summary>
        /// 保留字段
        /// </summary>
        public string Reserved { get; set; }
    }
    public class DBData
    {
        public DBData() { }

        /// <summary>
        /// DB地址
        /// </summary>
        public string DBAddress { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool Status { get; set; }
    }
    public enum ENUM_CONNECT_STATUS
    {
        连接成功,
        连接失败
    }
}
